<?php
class Pub300x94x1 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-300x94-1', 'Aves PT Pub300x94 - 1', array('description' => 'Bloco de publicidade 300x94.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="pub-300x94">
			<span class="pub-retranca">PUBLICIDADE</span>
			<div class="pub-300x94"></div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Pub300x94 - 1') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}

class Pub300x94x2 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-300x94-2', 'Aves PT Pub300x94 - 2', array('description' => 'Bloco de publicidade 300x94.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="pub-300x94">
			<span class="pub-retranca">PUBLICIDADE</span>
			<div class="pub-300x94"></div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Pub300x94 - 2') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}

class Pub300x94x3 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-300x94-3', 'Aves PT Pub300x94 - 3', array('description' => 'Bloco de publicidade 300x94.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="pub-300x94">
			<span class="pub-retranca">PUBLICIDADE</span>
			<div class="pub-300x94"></div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Pub300x94 - 3') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}

class Pub4x145x145 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-4x145x145', 'Aves PT 4x145x145', array('description' => 'Bloco de publicidade 4x145x145.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="pub-4x145x145">
			<span class="pub-retranca">PUBLICIDADE</span>
			<div class="pub-4x145x145">
				<div class="pub-145x145" style="margin: auto 5px 5px auto; float: left; background-color: #efefef;"></div>
				<div class="pub-145x145" style="margin: auto auto 5px 5px; float: right; background-color: #efefef;"></div>	
				<div class="pub-145x145" style="margin: 5px 5px 5px auto; float: left; background-color: #efefef;"></div>
				<div class="pub-145x145" style="margin: 5px auto auto 5px; float: right; background-color: #efefef;"></div>		
			</div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Pub4x145x145') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}

class PubAdsense300x250 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-adsense-300x250', 'Aves PT Adsense 300x250', array('description' => 'Bloco de publicidade Adsense 300x250.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="gpub-300x250">
			<span class="pub-retranca">PUBLICIDADE GOOGLE</span>
			<div class="gpub-300x250">
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7597001385191345";
				/* AvesPT 3 (300x250) - Coluna Lateral */
				google_ad_slot = "5842752311";
				google_ad_width = 300;
				google_ad_height = 250;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Adsense 300x250') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}

class PubAdsense300x600 extends WP_Widget {

	function __construct(){
		parent::__construct('pub-adsense-300x600', 'Aves PT Adsense 300x600', array('description' => 'Bloco de publicidade Adsense 300x600.'));
	}

	/* display widget */
	function widget($args, $instance) {
		extract($args, EXTR_SKIP);
		do_vertical_space ('10');
		?>
		<div id="gpub-300x600">
			<span class="pub-retranca">PUBLICIDADE GOOGLE</span>
			<div class="gpub-300x600">
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7597001385191345";
				/* AvesPT 3 (300x600) - Coluna Lateral */
				google_ad_slot = "4226418313";
				google_ad_width = 300;
				google_ad_height = 600;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
		</div>
		<?php
	}
	
	/* update/save function */
	function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		return $instance;
	}
	
	/* admin control form */	
	function form($instance) {
		$default = 	array( 'title' => __('Aves PT Adsense 300x600') );
		$instance = wp_parse_args( (array) $instance, $default );		
		$field_id = $this->get_field_id('title');
		$field_name = $this->get_field_name('title');
	}
}






?>